/*
 * @Author: csh
 * @Date: 2022-07-27
 * @LastEditors: BigFlower
 * @LastEditTime: 2022-08-23 20:34:50
 * @Description: file content
 * @FilePath: \wochat-vue3-ts-pinia\src\service\entity\Message.ts
 */
import {
  MESSAGE_DIRECTION,
  MESSAGE_SEND_STATUS,
  MESSAGE_TYPE,
} from '@/common/constant';

export class Message {
  constructor(
    public id = '',
    public type: MESSAGE_TYPE = MESSAGE_TYPE.TEXT,
    public content = '',
    public time = '1977-01-01 00:00:00',
    public direction: MESSAGE_DIRECTION = MESSAGE_DIRECTION.LEFT,
    public sendStatus: MESSAGE_SEND_STATUS = MESSAGE_SEND_STATUS.SENDING,
    public toUserName = '',
  ) {}
}
